{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    {include file="form" /}
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a title="添加车型" class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('添加车型','/admin/car_model/add',{w:'750px',h:'560px'})">
                <i class="Hui-iconfont">&#xe600;</i>
                添加汽车型号
            </a>
            {tp:menu menu="delete,recyclebin" /}
            <a class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('车型列表','/admin/arctic/index')">
                <i class="Hui-iconfont Hui-iconfont-fenlei"></i>&nbsp;车辆类型列表
            </a>
            <a class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('车型列表','/admin/car_brand/index')">
                <i class="Hui-iconfont Hui-iconfont-fenlei"></i>&nbsp;车辆品牌列表
            </a>
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    {php}use think\Db;{/php}
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="th" /}
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}
            <td class="f-14">
                {tp:menu menu='sedit' /}
                {tp:menu menu='sdelete' /}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/My97DatePicker/WdatePicker.js"></script>
<script>
    $(function () {
        $("[name='arctic_id']").find("[value='{$Request.param.arctic_id}']").attr("selected", true);
        $("[name='car_brand_id']").find("[value='{$Request.param.car_brand_id}']").attr("selected", true);
    })
</script>
{/block}

